#ifndef __MAINFRAME_H__
#define __MAINFRAME_H__
#include "..\\stdafx.h"
#include "..\\..\\facecat\\include\\xml\\FCUIXml.h"
#include "UIXmlEx.h"
#include "..\\..\\facecat\\include\\service\\FCClientService.h"
#include "..\\Service\\DataCenter.h"
#include "MyChart.h"
#include "FCDraw.h"

class MainFrame: public UIXmlEx, public FCListenerMessageCallBack, public FCInvokeEventCallBack{
public:
    MainFrame();
    ArrayList<MyChart*> m_charts;
    static MainFrame* getMainFrame();
    void changeTheme();
    FCTabView *m_tabFunc;
    virtual void loadFile(const String& fileName, FCView *view);
    void startConnect();
    int m_requestID1;
    int m_requestID2;
    SecurityLatestData m_latestData;
    String m_lastCode;
    void searchCode(String code);
    void callListenerMessageEvent(Object sender, FCMessage *message, Object invoke);
    void bindData(FCMessage *message);
    void callInvokeEvent(String eventName, Object sender, Object args, Object invoke);
};

#endif
